import {view, View, binder} from "adajs";
import MenuService from "./state.js";

@view({
    className: "menu",
    template: "./template.html",
    style: "./style.scss",
    dataset: {
        service: MenuService
    }
})
class Menu extends View {
    @binder("gotoPage")
    gotoPage({item}) {
        this.dispatchEvent("gotoPage", item.link);
    }
}

export default Menu;